#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
int main(int argc,char*argv[])
{
    FILE *fp=fopen(argv[2],"r");
    int i, j;
    char ch;
    j=atoi(argv[1]);
    for(i=0;i<j;i++)
    {
        do
        {
            ch=fgetc(fp);
            putchar(ch);
        }while(ch!='\n'&&ch!=EOF);
    }
    fclose(fp);
}

